Enhancing Public Safety With Real-Time Object Detection And Crowd Analysis